#ifndef OFXSOUNDINSTANCEH
#define OFXSOUNDINSTANCEH

// @todo we should use only "ofxSound" now, this code is redundant
#include <string>
#include "ofxFMODIncludes.h"

class ofxSoundInstance {
	public:
		ofxSoundInstance();
		~ofxSoundInstance();
		mutable	std::string fileName;
		mutable FMOD_SOUND	*fmodSound;
		mutable FMOD_CHANNEL *channel;
		mutable FMOD_DSP *soundDSP;

		bool bMultiPlay;
		bool loop;
		float pan; // 0 - 1
		float volume; // 0 - 1
		float internalFreq; // 44100 ?
		float speed; // -n to n, 1 = normal, -1 backwards
		unsigned int length; // in samples;

		void Clear(void) { fileName = ""; }
};


#endif
